package com.hong.fy_model.model.product;

import com.baomidou.mybatisplus.annotation.*;


import java.io.Serializable;
import java.math.BigDecimal;


import com.hong.fy_model.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 *
 * @author wqh
 * @email 1601709391@qq.com
 * @date 2022-06-15 20:37:30
 */
@Data
@TableName("product")
@ApiModel(value = "ProductEntity", description = "商品")
public class ProductEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 产品编号
	 */
	@TableId(value = "product_id",type = IdType.AUTO)
	@ApiModelProperty(value = "商品编号")
//	@TableField(fill = FieldFill.INSERT) //自动填充
	private Integer productId;

	/**
	 * 所属商品类别编号

	 */
	@TableField("category_id")
	@ApiModelProperty(value = "商品编号")
	private Integer categoryId;

	/**
	 * 所属3d模型编号
	 */
	@TableField("model_id")
	@ApiModelProperty(value = "所属3d模型编号")
	private Integer modelId;

	/**
	 * 商品名
	 */
	@TableField("name")
	@ApiModelProperty(value = "商品名")
	private String name;

	/**
	 * 图片地址
	 */
	@TableField("product_url")
	@ApiModelProperty(value = "图片地址")
	private String productUrl;

	/**
	 * 价格
	 */
	@TableField("price")
	@ApiModelProperty(value = "价格")
	private BigDecimal price;

	/**
	 * 访问量
	 */
	@TableField("view_count")
	@ApiModelProperty(value = "访问量")
	private Integer viewCount;

	/**
	 * 商品标签
	 */
	@TableField("tags")
	@ApiModelProperty(value = "商品标签")
	private String tags;

	/**
	 * 商品简介
	 */
	@TableField("introduction")
	@ApiModelProperty(value = "商品简介")
	private String introduction;

	/**
	 * 上架状态
	 */
	@TableField("status")
	@ApiModelProperty(value = "上架状态,1:上架,0:下架")
	private Integer status;



}
